<script>
function passwordChanged(json) {
	DWZ.ajaxDone(json);
	if (json[DWZ.keys.statusCode] == DWZ.statusCode.ok) {
		$.pdialog.closeCurrent();
		alertMsg.correct('<@label key="passwordChanged.M">密码修改成功，请重新登陆！</@label>', {
			okCall: function() {
				location.reload(false);
			}
		});
		// ajax 发送登出请求
		$.get($('#header .loginOut', $(document)).attr('href'));
	}
}
</script>
<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/user/savePwd" class="pageForm required-validate" onsubmit="return validateCallback(this, passwordChanged)">
        <div class="pageFormContent" layoutH="58">

            <div class="unit">
                <label><@label key="oldPassword.C,colon">旧密码：</@label></label>
                <input type="password" id="oldPassword" name="password" size="30" minlength="8" maxlength="20" class="required" />
            </div>
            <div class="unit">
                <label><@label key="newPassword.C,colon">新密码：</@label></label>
                <input type="password" id="newPassword" name="newPassword" size="30" minlength="8" maxlength="20" class="required alphanumeric"/>
            </div>
            <div class="unit">
                <label><@label key="rnewPassword.C,colon">重复输入新密码：</@label></label>
                <input type="password" name="rnewPassword" size="30" equalTo="#newPassword" class="required alphanumeric"/>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key="ok.B">确定</@label></button></div></div></li>
                <li><div class="buttonActiveGrey"><div class="buttonContent"><button type="button" class="close"><@label key="cancel.B">取消</@label></button></div></div></li>
            </ul>
        </div>
    </form>
</div>


